<template>  
  <div id="app">  
    <nav>  
      <router-link to="/">Home</router-link> |  
      <router-link to="/about">About</router-link> | 
      <router-link to="/admin">首页</router-link> |
      <router-link to="/roles">角色</router-link> |
      <router-link to="/resource">资源</router-link> |
      <router-link to="/rolestwo">添加用户</router-link> |
      <router-link to="/rolesfenpei">添加角色</router-link> |
      <router-link to="/logins">登录</router-link> |
    </nav>  
    <router-view/> <!-- 这里会显示当前路由对应的组件 -->  
  </div>  
</template>  
  
<script>  
export default {  
  name: 'App'  
}  
</script>